package webUtils.buzhidao;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

/**
* @author 作者 linweiqiang
* @version 创建时间：2017年9月29日 下午4:37:37
* 类说明
*/
public class HttpTime implements Callable<String>  {

	@Override
	public String call()  {
		try {
			for (int i = 0; i < 2; i++) {
//				HttpMain.httpmain();
				System.out.println(i);
				Thread.sleep(1000);
			}
		} catch (Exception e) {
			System.out.println(e.getMessage());
			e.printStackTrace();
		}
		return "success";
	}
	
	public static void main(String[] args) {
		ExecutorService ex = Executors.newFixedThreadPool(100);
		Future<String> callRes = ex.submit(new HttpTime());
	}

}
